package org.kth.dks.test_bed;

import java.io.IOException;

import org.kth.dks.dks_marshal.DKSMessage;

public class PingMsg extends DKSMessage {
	public static String NAME = "PING";
	private long count = 0;
	
	public PingMsg() { }
	
	public PingMsg(long c) {
		
		this.count = c;
	}
	
	public String getName() {
		return NAME;
	}
	
	public long getCount() {
		return count;
	}
	
	public void marshal() throws IOException {
		marshaler.addLong(count, "lnum");
	}
	
	public void unmarshal() throws IOException {
		count = marshaler.remLong("lnum");
	}
}
